﻿
@{
    ViewBag.Title = "订单物流";
    Layout = "~/Views/Shared/_MallLayout.cshtml";
}
@model order_logistic_results
<body class="page-logistics">
    <div class="ems">
        <i class="icon-ems"></i>
        <div>
            <div class="fn32">物流公司：@Model.express_company_name</div>
            <p class="fn28 col-gray">物流单号：@Model.ship_order_number</p>
        </div>
    </div>

    <div class="step">
        @if (Model.logistic_results.Traces != null && Model.logistic_results.Traces.Count > 0) {
        <ul>
           @{ var trace = Model.logistic_results.Traces.OrderByDescending(s => s.AcceptTime).ToList();}
               @foreach (var item in trace) {
                   var time = DateTime.Parse(item.AcceptTime);
                <li>
                    <span class="date fn26">
                        @time.Month-@time.Day<br>
                        <em class="fn22 col-gray">@time.Hour:@time.Minute</em>
                    </span>
                    @if (item == trace.FirstOrDefault() && Model.logistic_results.State == "3") {
                        <i class="step-i icon-step3"></i>
                    } else {
                        <i class="step-i icon-step"></i>
                    }
                    <div class="text fn26">
                        <div class="receiving">@item.AcceptStation</div>
                    </div>
                </li>
            }
        </ul>
        } else {
            <div style="text-align:center">暂无物流信息</div>
        }
    </div>

</body>
